tile refactor

with a tile class
also: need a constants file!