Fixed lighting bug and add boundary checking to player