Changed table to list pointers instead of lists themselves, but inserting more than two won't work