add error checking after call to malloc in team_createplayer
Merge pull request #166 from YoNuTzZ/error-checking-after-call-to-malloc

add error checking after call to malloc in team_createplayer