cleaned up snakecontroller a bit