as you can see at https://codepen.io/anon/pen/PvZzpe the character is leaving a trail on pressing left and right keys
I am trying to make the character to move left and right on the screen without leaving a trail but it is not working
I am doing so by calling the clearBg()
as here:https://codepen.io/anon/pen/dEGXjV
can you see what the problem is?