This is java code for a ladder game.