Added parameterization of player. Also took out more of the old multithreaded code.