Fix canvas resize on snake game