You got collisions working for them from the top, just try to apply that to the sides. I'll take a look at your code tomorrow if you can't figure it out :D.
I tried to apply the code to the sides and masses of error messages came up, and I couldn't complile my project. Deleted it, there were probably lots of errors :(
2011/12/28
2011/12/28
2011/12/28
2011/12/28
2011/12/29
2011/12/29
2011/12/30