Added functions to draw rectangles and lines and a test for them.
Surfaces are now locked before editing pixels.
Fixed stupid bug caused by using 'r' for two variables.
Added ability to draw circles and updated test.