You can try code like "IF PLAYERY>203 THEN PLAYERY=203" for the bottom ground (assuming that the Y for the player is based off of pixels). You can set up the player collision with SPCOL 0,1 and set SPHITRCs up to detect the collisions between blocks.