Softcoded 2d c++ game