fixed error with order of methods calling in moveSnake()