Animation of the first ghost - pacman wall detection not working