Built a 2D square and triangle using webGL TODO refactor