(UNSTABLE!) added some more sanity checking, fixed a memory leak (and introduced a new one)
Need to remove players from all player tables when they no longer exist.
TODO: recode.

Signed-off-by: Andrew Click-Horn <andrewphorn@gmail.com>