adjust texture indexing to be 1-based
be more permissive in bottom collisions when creating blocks
repeat textures, factor out gravityEnabled