Memory Optimization done!

Although the returned move is not the right one. It currently returns the last move that the AI can do.