refactored win logic in GameController and is working