Fixing inputs for game finished condition