added killThreshold and logic for gameEnd, though those scenes are not implemented.