snake movement implemented