Prevented cursor from being drawn when outside world bounds.
Fix #4.