added test for resignation and implemented in makeMove