Fixed entity class
Created the entity class, this works as objects as they're easier to manage (both creation and deletion/freeing memory). Window creation and renderer are set as global functions for the time being.

Signed-off-by: Alberto Corona <albcoron@gmail.com>