Fixed input bugs on the main game screen