running through minimax, placing output at incorrect space