gui gets updated with every move