Moved graphics stuff to gfx.c
Started PSX port.