code refactoring of slideOnTheSnow ..

Signed-off-by: Dimitar Todorov <d.todorov@seeburger.com>