Started rebuilding turnBrick function