title: how to make a moving object to centre html5 canvas?
body: <p>hey there I have a game here <a href="https://green-snake.glitch.me" rel="nofollow noreferrer">https://green-snake.glitch.me</a> and what I want to do is when the object moves by arrow keys not to hide behind canvas borders</p>