snake directions stack