makeshift check_if_win made