heroObj is now bounded inside the bounds of the canvas