Test of a game in Java