Changed hit box layouts to FrameLayouts.
Removed duplicated code.