Fixed 'end_turn' button state issue