added convex hull algorithm to simplify lighting and added basic collision