now compiles and works

fixed off by 1 errors in player numbers