added some functionality

1. basic collision handling
2. added some code for menu (not being used yet)