Solid added and started adaptation to it

I added the Solid class and did some changes to the code to adapt and
modularize it, I'll just organize a little bit and get on with the
hitboxes