Source code of a small game made in Java