Store the position and the velocity of the ball. Then you must add this in your game loop: LOCATE X,Y ? " " IF collission(X,Y+DY) THEN DY=-DY IF collission(X+DX,Y) THEN DX=-DX INC X,DX INC Y,DY LOCATE X,Y ? "#"