Prevent Pickups from spawning on the end cell
Added comments and wrapped Battery/Oxygen handling in functions