Finish the code refactoring and implement a random robot to play against an human player