Added get_screen_center function to the BaseState class.