rain game works, but needs object oriented work