Snake clone written in Java