Moved logic from game to snake and introduced new Direction class