removed absolute position of pieces and added them to the square elements.