Serious game and functional rehabilitation for the lower limbs