Made some modifications and added functionality.
- shape drawing functions combined in order to avoid code repetition;
- implemented checkForCompleteLines() function