Remove obscure, commented-out code

Change casts Side to int to static_cast