Added the ability to flip tiles

on the x axis and the y axis, based on two booleans