mouse move+set win and lose flag