Moved Snake class to separate file