cleaned block checking method to have win check made once at the end of the function rather on multiple lines