Fix bug in the discrete positions calculation

In order to calculate the step it was using
(num_discrete_positions_per_room + 1), but only
num_discrete_positions_per_room should be used.