Implemented minimax gamer