ball moves in square and added the escape button