bug fixed which turned the pieces upside-down