public void moveRight() { if (lives > 0) { bucket = bucket.moveRight(); if (bucket.getLocation().getX() > WIDTH + Bucket.WIDTH / 2) bucket = bucket.moveTo(-Bucket.WIDTH / 2, (int) bucket.getLocation().getY()); } }