Implemented minimax algorithm and result&return screen