Minimax implemented but it doesn't seem to work...