function can play white or black. added possibility to play against a human