get snake moving wiht arrow keys and apples generating