Clamp collision detection to the edges of the level

File "lib/level.py", line 334, in loop
    t = row[x / TW]
IndexError: list index out of range

The range of tiles to check against each sprite is now clamped to the
dimensions of the level.