Make m_MENU_ITEM_OPENING stop assuming side_number and take a SIDE argument instead.