Fix bugs with background and moving AI.