Rewritten graphics engine
-Using threads now
-Using Triple Buffer
Revert "Rewritten graphics engine -Using threads now -Using Triple Buffer"

This reverts commit b0d087935544768461fb37025fcb279e7d5cd2bc.
Revert "Revert "Rewritten graphics engine -Using threads now -Using Triple Buffer""

This reverts commit dbb403b90e166bcb4abeb99b776a415529d780a1.