public boolean hitWall(Wall w) { if (this.isLive() && this.getRect().intersects(w.getRect())) { this.live = false; return true; } return false; }