added all of the code and updated the functionality of Keep Away in order to implement random moves of equal result.