Testing canvas with snake game