Added back lua support

Lua is now fully working again. Also, fixed some bugs with build.gradle
and changed graphics.end() to graphics.display()