Added minimax algorithm, sorta broke player input