added drawBorders method to Cog
refactored drawBorders()