cleanup and commenting in play.cpp