Added Direction class for Snake.