Test to code a game in Java language