added multiple player input support