Beginning drawing logic