removed some unneeded functions, made play and init their own functions