a simple javascript snake game