Fixing snake/ladder problem