added the table assignment part. Currently, if there is a full table, it seems to just stop adding people to a table. at the 'continue' part