Snake clone made in java