Refactoring of the touch handler to use constructors. Then added graph priority computation to the CCNode. Also added a visibility check for touch handlers to prevent invisible nodes from receiving touches.