moved half the draw code into a new function: update()
added cos and sin to allow rotate and forward motion