improving AI button and text box functionality to work properly for both light and dark pieces