clearCaptured function now works but is currently hard-coded, make it flexible later by accepting who is the current player to clear what coloured pieces