Created castlePeice class.