Using canvas for a puzzle game