more tests and added protection in function setCell of Player