ApplyMove function works, legal moves need testing