Added a function needed for my minimax player