Added main
Actually adding main.ml
Fixed off-by-one error in tile grabbing