HW2: GameLogic
PS:add deploy logic and some test cases for deploy phase