Update kit.lua

Fixed wrapSides(), hopefully.