Added random AI script

Also some bugfixes to Gamestate.py and GameCommunications.py