Fixed collision boxes being calculated incorrectly and also added option for rendering collision boxes