made work in browser and kind of in nodejs
fixed number of players check
call node callback of images
run game controller in callback after images are loaded