cleaned up code a bit. hardcoded "if board is empty, move in the middle" for AI, otherwise very slow