C - RPS is functional using sessions