better cards.lua and main

-new Function
-better Render Function