check if the monkey is going out of the sceens