fixed a few bugs and implemented basic game rendering