adding c shaped world and separated code into parts.