import java.util.*; public class Gameover { private Position position; public Gameover(Position position) { this.position = position; } public boolean getGameover() { return ((this.position.getPosition().getValue()<-(1.0)) ? true : false); } }