breaking up code for puyo