Move game over logic to a single class