How to hack gambling machines