drawing boxes to the canvas and letting the black box move with key presses