move around game logic code to separate from components

Created by  Bowei Liu  on December 31, 2020
MLD2UMGNFL5Q446O6EI5L5JS3RTEZ4IR4VENYHE7RIKBKVYKVUEAC
Change contents