PacMan generates data in the browser and pushes it to the Web Server
5 127 5 1

PacMan Exercise

In this exercise you need to detect when PacMan touches either the left or right side of the WebPage and reverse its direction and also flip the image to face the in the direction moved. eg use different images.

You should also use the JavaScript function setTimeout to automate the movement.