Worked on rendering. It now works(somewhat)