refactored win? method