Refactored inputs and scene code; added "score" display.