promises integrated

to be done in the next PR, repeated code for changing player types to be removed and replaced.