fixed pcmoves randmom functions