added States to the main event loop; added computing and drawing seams