Python Method Chaining Javascript Snake Tutorial Drawing