Snake project for Java class