add game logic code, judge the remove rule