Added scores and game endings work properly