Bug fixes & start of lighting

Fixed issue dealing with block placement
Fixed crash from terrain/chunk creation due to block placement
Fixed issue when picking up items after switching the active slot
Started lighting calculations