finished move function now working on win function