Catch IndexOutOfBoundsException in gameEngine class