Extracted canvas functions. Removed checkAnswers().