Squashed commit of the following:

commit 91469879641f37ce5612f2727682f5a375e24a24
Author: Tomek Janiszewski <janiszt@gmail.com>
Date:   Sat Jun 1 20:23:57 2013 +0200

    Change gitignore

commit 2466e6c6a08e11d2d4dd1ab3e6092745c23ec395
Author: Tomek Janiszewski <janiszt@gmail.com>
Date:   Sat Jun 1 20:22:18 2013 +0200

    Fix

commit ebfb5eaa15b677d3a6afd5ce84627989a9089701
Author: Tomek Janiszewski <janiszt@gmail.com>
Date:   Sat Jun 1 20:19:04 2013 +0200

    Fix formatting

commit d291197e819fb92162f10398d1939103abbf1c3f
Author: Tomek Janiszewski <janiszt@gmail.com>
Date:   Sat Jun 1 20:14:40 2013 +0200

    Create assertion on index in removePlayer

    Find race condition. If user close socket before player is create, it
    try to remove itself from players list but it's empty.

commit 364a45ab1505eaaa8c0b575d3880e3b8b09b888d
Author: Tomek Janiszewski <janiszt@gmail.com>
Date:   Sat Jun 1 19:28:34 2013 +0200

    Fix debug infrmation

commit 4cd78b8a367ebf88b8386a7c73dbed96b342f2c5
Author: Tomek Janiszewski <janiszt@gmail.com>
Date:   Sat Jun 1 19:15:05 2013 +0200

    Move serve declarations to server.h

commit fa425bf61ae2dcad78f57f7a28bb49cfc1562c5e
Author: Tomek Janiszewski <janiszt@gmail.com>
Date:   Sat Jun 1 18:38:28 2013 +0200

    Add nick validation

commit 33629038bda19a7093bf353f66bdbe3deca3677d
Author: Tomek Janiszewski <janiszt@gmail.com>
Date:   Sat Jun 1 17:14:42 2013 +0200

    Add debug mode

    Ignore Broken Pipe signal

commit 947fceb8cc76ba81b58b783667c6e016a0fbd3b9
Author: Tomek Janiszewski <janiszt@gmail.com>
Date:   Sat Jun 1 15:56:57 2013 +0200

    Fix player creation

commit 083fdf80506c28d8041de75a48ec82bd9f65b2f0
Author: Tomek Janiszewski <janiszt@gmail.com>
Date:   Sat Jun 1 15:39:42 2013 +0200

    Put players into list

commit 9759012fcb793a628dc6860fa8252bc023bcb57f
Author: Tomek Janiszewski <janiszt@gmail.com>
Date:   Sat Jun 1 14:28:49 2013 +0200

    Fix makefile

commit 85b8fdda16425af6dc906f3d2bf9a8ba552d093c
Author: Tomek Janiszewski <janiszt@gmail.com>
Date:   Sat Jun 1 14:21:41 2013 +0200

    Move player code to separated file

commit 99ff2ecde1903084eceba30232f5ba119fe5d3cf
Author: Tomek Janiszewski <janiszt@gmail.com>
Date:   Sat Jun 1 11:55:58 2013 +0200

    Add rooms list in map

commit 929904fa1f622e1a0fe9b4199c9ae7eb6435310d
Author: Tomek Janiszewski <janiszt@gmail.com>
Date:   Sat Jun 1 11:27:33 2013 +0200

    Use color-gcc instead of plain gcc

commit 37a70b39494bf61d957c559b1f54e9d859952b5d
Author: Tomek Janiszewski <janiszt@gmail.com>
Date:   Sat Jun 1 10:53:13 2013 +0200

    Change players moves
Add player lock and fix loop break in clientWriter
Lock player while performing it's action
Implement Up move
Implement all move directions
Merge branch 'moves' into gamelogic
Fix inline warnning

http://stackoverflow.com/a/13121144/1387612
Implement attack function
Add travis configuration
Remove cc declaration in Makefile
Merge branch 'travis' into gamelogic

Conflicts:
	Makefile
	constans.h
	map.c
	map.h
	player.c
	player.h
	server.c