Discovered FD_SETSIZE. Simplifies select calls.
Fixes to AStar and ArtPot. Almost working, I swear.