Can't you be more specific about your problem? Is it sprite1 which is drawn in wrong coordinates (and if so, which coordinates?)? sprite2? the bounding rectangles?
Debug, print values, ... try to figure out by yourself which variables don't have the value you expect. It shouldn't be hard with such a small code.