snake rendering is working in browser