Fixed getTransition
Level printing function