i have some problem in changing Direction of my snake,how to change this code,because of using cout<<"***"; i have this problem,i know i have to save every location of snake going but i dont know how can i do this,i want to change this in this way,when i hit a key it change direction and goes down truely,not in this way