Adding a fuction to check for a non-winnable game