add setFlip, getFlipX, getFlipY and tracking of flip state to Sprite.java

I did some testing and this seems to work as I expect.