Searching algorithm implemented. A bug in ApplyMove needs to be fixed