Simple riding the ladder simulator written with java