fixed check for win position.