Implemented state machine for the notes on the staff.