javascript snake game for the purpose of practise