Refactored robot code to allow non robot players