edited board class method getPosition and setPosition