centering the pieces in the window