AI can now take moves

Added functionality for AI to take moves after a player