added mario moving until reaches the end of the canvas