Optimal Game Move Strategy - Coding problem | OneNoughtOne