Snake clone built in java