robot player soldier code