Simple snake game on java