Working and optimized prototype

Needs more tags, almost finished