Refactored "Rules"

Moved some methods which were identical into "rulehelper.cpp" and
"rulehelper.h".
Moved folder "rules" into folder "player"