changed to subroutines, bugfix in output, can now create a team