simplified the code and got the blouncing block demo to work