Removed some virables and the rectangle selection and center and made a
new class that holds the whole information of the rectangle and the
selection (so now we can move and rotate the whole selection without to
write too much)
fixed some bug