// If the PlayerTank collides with a FireRing it will die
if (obs instanceof FireRing) {
FireRing c = (FireRing) obs;
if (rect.intersects(c.getRectangle())) {
notifyObservers(new Point(p.getLocation().row - 12, p.getLocation().col - 12));
p.recieveDamage(1);
}
}
// If the PlayerTank collides with a SpikePit it will die
if (obs instanceof SpikePit) {
SpikePit c = (SpikePit) obs;