added direction to .snakes on api.js