if(isTouching(ship.class)) {
removeTouching(ship.class);
GameOver gameover = new GameOver();
addObject(gameover, 500, 150);
It tells me something is wrong with addObject
You need to get a reference to the world to add the object to the world. An actor can receive a reference to the world it is currently in with the ‘getWorld’ method.