fixed three bugs

1. Scaling entites from the left side or the top side.
2. preventing scaled_width or scaled_height from exceeding max values.
3. making scaled values not static.
Gridded rotation
Gridded movement