moved logic from board to player