I tried to execute this directly with love, but got the following error:
Error: game.lua:265: attempt to call field 'getStats' (a nil value)
stack traceback:
game.lua:265: in function 'draw'
main.lua:67: in function 'draw'
[string "boot.lua"]:437: in function <[string "boot.lua"]:399>
[C]: in function 'xpcall'