worked on motion code

the entire coordinate system is being changed. I am using matrix
transformations now to draw and move the sprites. This is the easiest
way of doing things. However, right now is not working.