Better snake rules. Added afterGameOver event