Created Rules class to move there common logic for computer and player